package com.sh.data.engine.application.model.dto.base;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

/**
 * @author: mengzheng.mhc
 * @date: 2024/6/3 13:47
 */
@Data
@Schema
public class PagerResponse<T> implements Serializable {

    /**
     * 总记录数
     */
    @Schema(description = "总记录数")
    private Long totalElements;

    /**
     * 结果集
     */
    @Schema(description = "结果集")
    private List<T> result;

    /**
     * 页数
     */
    @Schema(description = "当前页")
    private Integer pageNum;

    /**
     * 每页记录数
     */
    @Schema(description = "每页记录数")
    private Integer pageSize;

    /**
     * 总页数
     */
    @Schema(description = "总页数")
    private Integer totalPages;
}
